package jcu.sal.common.agents.netty;

/**
 * @author Marc Hammerton
 * 
 */
public class NettyConstants {

	public static final int PORT = 9234;

	public static final int HEADER_LENGTH_FIXED_DATALENGTH = 2;
	public static final int HEADER_LENGTH_VAR_DATALENGTH = 6;

	
	// Messagetype Constants
	// Client requests
	public static final short REQ_REGISTER				= 0;
	public static final short REQ_UNREGISTER			= 1;
	public static final short REQ_ADD_PROTOCOL			= 2;
	public static final short REQ_ADD_SENSOR			= 3;
	public static final short REQ_GET_CML				= 4;
	public static final short REQ_GET_ID				= 5;
	public static final short REQ_GET_TYPE				= 6;
	public static final short REQ_LIST_ACTIVE_SENSORS	= 7;
	public static final short REQ_LIST_PROTOCOLS		= 8;
	public static final short REQ_LIST_SENSOR			= 9;
	public static final short REQ_LIST_SENSORS			= 10;
	public static final short REQ_REMOVE_PROTOCOL		= 11;
	public static final short REQ_REMOVE_SENSOR			= 12;
	public static final short REQ_SETUP_STREAM			= 13;
	public static final short REQ_START_STREAM			= 14;
	public static final short REQ_TERMINATE_STREAM		= 15;
	public static final short REQ_REG_EVENTHANDLER		= 16;
	public static final short REQ_UNREG_EVENTHANDLER	= 17;
	
	// Agent responses
	public static final short RESP_SYNC_STRING		= 0;
	public static final short RESP_SYNC_STREAMID	= 1;
	public static final short RESP_ASYNC_RESPONSE	= 2;
	public static final short RESP_ASYNC_EVENT		= 3;
	
	
	private NettyConstants() {
	}
}
